# -*- coding: utf-8 -*-
import sys, os

reload(sys)
sys.setdefaultencoding('utf-8')


cols = 16
rows = 256//cols
# table = list("" for n in range(256))
char = 0

# print table

data = ''

for row in range(0, rows):
    for col in range(0, cols):
        # table[row] += '{:3.0f}'.format(char) + " "
        # print col+row*cols, cols, rows, len(table)
        if char not in (9, 10, 13):
            # table[col+row*cols] += chr(char)
            data += chr(char)
        char += 1
    # table[cols-1 + row * cols] += '\n'
    data += '\n'

# print data

d = ''
for n in range(0, 256):
    d += str(n)+' '
    if n % 16 == 0: d += '\n'

print d

# for row in range(0, rows):
#     for col in range(0, cols):
#         print
#
# with open('a.txt', 'w') as f:
#     f.write(chr(0).encode('utf-8'))